package org.dftproject.gedcom.core;

import java.util.List;

import org.dftproject.genesis.data.genealogy.GenealogyConstants;
import org.dftproject.genesis.data.genealogy.ISource;
import org.dftproject.genesis.data.genealogy.impl.RoleImpl;
import org.dftproject.genesis.data.impl.AttributeImpl;

public class InternalUtils {
	
	public static void addSources(AttributeImpl attribute, List<ISource> sources) {
		for (ISource source : sources)
			attribute.addAttribute(new AttributeImpl(GenealogyConstants.source, source));
	}
	
	public static void addSources(RoleImpl role, List<ISource> sources) {
		for (ISource source : sources)
			role.addAttribute(new AttributeImpl(GenealogyConstants.source, source));
	}

}
